package com.scoy.honeymei.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * ClassName:      com.scoy.honeymei.bean
 * Description:
 * Author:         GaoZhan & Administrator
 * UpdateDate:     2019/10/28/0028$ 上午 9:52$
 * UpdateRemark:   更新内容
 */
public class AddressBean implements Parcelable {

    /**
     * id : 34
     * userid : 15
     * areaid : 24
     * area : 河南省郑州市中原区
     * addressdetail : here
     * username : name
     * phone : 1833995
     * updatetime :
     * select : 0
     */

    private int id;
    private int userid;
    private int areaid;
    private String area;
    private String addressdetail;
    private String username;
    private String phone;
    private String updatetime;
    private int select;

    protected AddressBean(Parcel in) {
        id = in.readInt();
        userid = in.readInt();
        areaid = in.readInt();
        area = in.readString();
        addressdetail = in.readString();
        username = in.readString();
        phone = in.readString();
        updatetime = in.readString();
        select = in.readInt();
        freight = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(userid);
        dest.writeInt(areaid);
        dest.writeString(area);
        dest.writeString(addressdetail);
        dest.writeString(username);
        dest.writeString(phone);
        dest.writeString(updatetime);
        dest.writeInt(select);
        dest.writeString(freight);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AddressBean> CREATOR = new Creator<AddressBean>() {
        @Override
        public AddressBean createFromParcel(Parcel in) {
            return new AddressBean(in);
        }

        @Override
        public AddressBean[] newArray(int size) {
            return new AddressBean[size];
        }
    };

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    private String freight;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getAreaid() {
        return areaid;
    }

    public void setAreaid(int areaid) {
        this.areaid = areaid;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddressdetail() {
        return addressdetail;
    }

    public void setAddressdetail(String addressdetail) {
        this.addressdetail = addressdetail;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public int getSelect() {
        return select;
    }

    public void setSelect(int select) {
        this.select = select;
    }
}
